/**
* @author:kellen
* @contact:xiekellen@hotmail.com
* @company:achivo-gz
* @created on:
* @modified on:
*/

package com.sasis.service.impl;

import java.util.List;

import com.sasis.service.impl.BaseManager;
import com.sasis.model.PassengerInfo;
import com.sasis.dao.PassengerInfoDao;
import com.sasis.service.PassengerInfoManager;

import com.sasis.util.PageList;
import com.sasis.util.PageRequest;

public class PassengerInfoManagerImpl extends BaseManager implements PassengerInfoManager {
    private PassengerInfoDao dao;

    /**
     * Set the Dao for communication with the data layer.
     * @param dao
     */
    public void setPassengerInfoDao(PassengerInfoDao dao) {
        this.dao = dao;
    }

    /**
     * @see com.sasis.service.PassengerInfoManager#getPassengerInfos(com.sasis.model.PassengerInfo)
     */
    public List getPassengerInfos(final PassengerInfo passengerInfo) {
        return dao.getPassengerInfos(passengerInfo);
    }

    /**
     * @see com.sasis.service.PassengerInfoManager#getPassengerInfo(String id)
     */
    public PassengerInfo getPassengerInfo(final String id) {
        return dao.getPassengerInfo(new Integer(id));
    }

    /**
     * @see com.sasis.service.PassengerInfoManager#savePassengerInfo(PassengerInfo passengerInfo)
     */
    public void savePassengerInfo(PassengerInfo passengerInfo) {
        dao.savePassengerInfo(passengerInfo);
    }

    /**
     * @see com.sasis.service.PassengerInfoManager#removePassengerInfo(String id)
     */
    public void removePassengerInfo(PassengerInfo passengerInfo) {
        dao.removePassengerInfo( passengerInfo);
    }
    public PageList queryForPageList(String listStatementId,  
    		Object parameterObject, PageRequest pageRequest){
	return dao.queryForPageList(listStatementId,   parameterObject, pageRequest);
    }
}
